Added segment tree