Knn implemented