Java implementation of a quadtree