Program simulating heat diffusion.