Compleated method "nearestNeighborValue"