Cryothermodynamics: the chaotic dynamics of paleoclimate