Added HierarchicalMultilabelModel class

Use `int32_t count = 0`, because it's only used inside the loop.  Rule of thumb: Keep variables as local as possible.