query ball tree is working properly and query pairs may be working...