Add SegmentTree classic implementation