SegmentTree implementation working.