Added Magnetization method to Ising class