Java class for modeling a percolation system.