Updated PickNearestNeighbour to handle multiple incorrect candidates.