[MOD] NearestNeighbour functions.