spatial decomposition of a 2D domain using quadtree mesh algorithm