Finished basic knn