Monte Carlo simulation of the classical 2D Ising model