added QuickUnion and WeightedQuickUnion