add recoverTree.cpp