Library for Union Find Disjoint Set