Use a quadtree!