Improved implementations of quadtree classes

Improved Quad
Improved RegionQuad