implement weighted quick union

In this pull request
- Implement weighted quick union
also see how verbose objective-c is comparing to javascript