nanshe/advanced_image_processing.py: Optimized distance calculations in merge_neuron_sets.