Finished implementing the Nearest Neighbor algorithm and testing it