Given a dataset determine best value of k for KNN algorithm