Add a function nearestNH in common.cpp/h for a vector of Point.