Add combine form of binary-tree function