use of KNN as classifier