Knn Algorithm Without Sklearn