added rle flag to segtree