A cubic spline technique for the one dimensional heat conduction equation