An implementaion of a Multi-Label Classification algorithm on Tree- and DAG-Structured Hierarchies