Computes diffusion equation in 1D using 2 different methods