A Numerical Method for Solving Nonlinear Heat Transfer Equations