Create Segment Tree