B-tree almost work