kNN function

k-Nearest Neighbour Classification