Apply weighting to QuickUnionUF
Reintroduce while loop to avoid stack overflow
Configure output format
Exclude specs tagged with performance
Add performance test
Extract duplicate tests to shared_example