implement weighted quick union

In this pull request
- Implement weighted quick union
it's kinda redundant here, check it out https://github.com/GingerBear/Princeton-Algorithms/blob/master/Part1/Week1/UF_weighted_quick_union.js#L37