Wrapper for treeDecomposer

Took into account the comment and created a case class for the return type of treeDecomposer