B+ tree code