Added K Nearest Neighbor Functionality