Design of a Heating System with Geothermal Energy and CO2 Capture