Added weighted quick union UF and tests