Update gset for Disjoint Set