namespace CompactBinaryTree { class TreeNode { value : number ; left : TreeNode | undefined ; right : TreeNode | undefined ; constructor ( value ) { this . value = value ; this . left = undefined ; this . right = undefined ; } } }