Added knn and wnn.