Cluster algorithm for vertex models.

Cluster algorithm for vertex models.