HQ-DTM: A Hierarchical Q-learning Algorithm for Dynamic Thermal Management of Multi-core Processors (Proceedings of the 29th ACM/IEEE International Symposium on Low Power Electronics and Design)