Re-did disjointset.js.