Nucleic acid memory