Working on b-tree code (incomplete)