Fixed bugs in B+ Tree and commitTransaction()