segment tree
segment tree to count sum of elems