Create knn.cpp

Knn.cpp created.