removed knn query code for the single nearest neighbor case since it was incorrect and unused.