DummyHierarchy function

Converting hierarchy specifications to a (signed) dummy matrix