add knn search feature on qtree.