debug segtree-2d