Added KNN and Distance