homework 1 on knn and bayes inference