Added support for KNN classification