Added getNearestNeighbour() method