Working version of btree
Dealing with btree duplicates