Simulation of the Ising model for ferromagnetism, on different kind of lattices