union find in 3 implementations: quick union, quick find and quickunion weighed