modified the binary_tree.cpp