Add general segment tree