Update BTree.java

Fixed a few runtime errors