Add a check (segment tree sum).