Actually, I do have one comment on the code: please don't leave commented-out code in the project. If you don't need these versions of union(), delete them.