Create knn.cpp

create knn.cpp file