Solution for p60.
Refactor and cleanup tree-based solutions.

Move common code for generating subtrees, combining subtrees, and
extending the partial solutions into p55. Also, provide accessors for
TREE-ELEM TREE-LEFT and TREE-RIGHT.