initial knn version that is broken