A Cyclic Thermal Instability in Contact Binary Stars