spatial decomposition of a 2D domain using quadtree mesh algorithm

code not completely written yet