Lazy sum evaluation in segment tree