Incomplete impl of KNN