Add TreeTuple class

Add TreeTuple class which instances are used by BinaryTreeImpl.