Fixes failed memory test for PercolationStats, changes grid indexes to 1-based instead of 0-based