Percolation implementation