I\'m trying to learn how to perform K-Nearest Neighbors from scratch (without using sklearn). I need to define a function that performs k-NN on a set of data. I want to invo