Ising model simulation on the CPU