This generates all possible tree fragments as features with the conditions that sibling nodes from the original trees cannot be separated.
substructures are composed by atomic building blocks corresponding to nodes along with all their direct children.