[B tree] started rewriting B-tree