added SegTree