Hierarchical decomposition of domains with fractures