Initial version of grouping based hierarchy builders