Growth and Retreat of the CO2 Ice at the Martian Poles