Complete (I think) Java version of B-Tree assignment.