Added Segment tree