Update recoverTree.cpp