--- from: http://rosettacode.org/wiki/Percolation/Mean_cluster_density note: Percolation Simulations