Add inorder traversal and median to c++ bst.