Implement sexy KNN function and test code.