A new Monte Carlo method for percolation problems on a lattice