Multilabel Classification by Hierarchical Partitioning and Data-dependent Grouping