Ising Model Metropolis Algorithm Matlab