fix the k-nearest neighbors method on the Point class.
