Cluster algorithm for hard spheres and related systems