learnKNN function

Fit models and make predictions with a KNN classifier