Create nearestNeighbor