A data structure for non-manifold simplicial d-complexes