Multicore Thermal Management with Model Predictive Control