Implemented knn Model building