fix a bug in findPrevSuc function in Tree.cpp