Eliminate bugs in disjoint-set module