Topological modifications and hierarchical representation of cell complexes in arbitrary dimensions