B+ tree simulation code with Java