linked list disjoint sets