Reactions involving nucleic acids