Update rebuildBTree.cpp