Make head setting a member function of internal nodes.

This effectively moves set_head() out of the head finder and into the
internal_node class for re-use in the (future) binarizer.
Add head-outward binarizer tree transformation.