fixed errors that were occurring during the simulation with the B+tree.  might need to make simliar changes to B tree.