Regulation of chromatin structure in memory formation