Added HierarchicalMultilabelModel class

You write that it has to be within `[0;n-1]`, but you only checked upper bound.