Optimising the tree

Speed up the redefinition of multiple features in a large feature tree by optimising the solid feature tree. This groups together multiple occurrences of the same features.

Optimise the tree in one of the following ways: