A Matlab implementation of Proper Generalized Decomposition Method for thermal problems