hw3 of KNN