An implemintation to a QuadTree