Linked-List Implementation of Disjoint Set