Added union_find version of Swendsen-Wang