working knn using 10-fold stratified cross validation