Implemintation of a QuadTree