corrections to PercolationStats.java