corrected closest_neuron method
fixed closest_neuron method