Create Knearest.cpp