- first implementation of btreesegment