Learning Principle for the Adaptive Shaping of Epigenetic Memory Repertoires | Synapse