Update nearest_neighbour.cpp