Added query helper method to QuadTree