SegmentTree2, DisjointSetUnion2