update knn to have functions and run 5 times