added ising

tested hamiltonian with magnetic field