DataDummyHierarchy function

Create a (signed) dummy matrix for hierarcical mapping of codes in data