updated btree.cpp