Swendsen-Wang algorithm