This is our implementation of UNION FIND (Disjoint Set) Algorithm