updated PercolationStats to include N and T as taken from std input