2d mesh generation via divide and conquer using ruby