Added some intrumentation to the btree. Needs to be finished.