Fixing Weighted Quick Union algorithm based on errata from week 1.