Solving Direct and Inverse Heat Conduction Problems