Algorithm for Solving Heat Conduction Problem for Design of a Technical Device