added quadtree to gfx branch