K-Nearest Neighbors algorithm implementation for Artificial Intelligence (CS 540) at UW-Madison