Integrate BTree in SegmentManager