Catching nuclear smugglers: Fast algorithm could enable cost-effective detectors at borders