knn and logistic regression