Implemented addElement() in DijunctSets class