Complete k-nearest-neighbors: sort training points by distance, take k, and predict by majority vote.