Implemented the Percolation class and PercolationStats class