UnionFind Algorithms completed and simple test passed