perform.knn function

k-Nearest Neighbor classifier