Add DisjointSets class

refer: Disjoint Sets of CLRS and UNION-FIND of Algorithms