The Epigenetic Pacemaker: modeling epigenetic states under an evolutionary framework