Implementation of the Heat Equation