Add segtree.