quadtree: Implement query.