Implementation of heat transfer problem in C, intended to be parallelized.