Modified BinaryTree.