segment tree_min_max_sum