complete min_tree.cpp and modify balance_tree.cpp