Started working on mergeHierarchies