QuickFind implementation
WeightedQuickUnion implementation