KNN Homework

1NN using a single apply.