fixed bugs in disjoint-set - now compiles