Compiling with C++11
Refactoring logic into HeatPropagationSimulator class