Renamed BinaryTreeNode to TreeNode, added assertions