Started on kNearestNeighbors function