KNN Homework from Nico

Here is my attempt at a 1NN function. Thanks. Nico