improved the 2D code such that it gives susceptibility and specific heat