added the 2D codes for Ising model which in cython