mv flatten_tree.cpp