Explicit Matrix Solution of the Discretized Thermal Regenerator Model