Knn In R For Categorical Data