simple 1d Ising Model simulation