add distance.cpp to find the nearest points in a list