Refactored: Segment is now superclass for SPSegment and BPlusSegment.