SMS: Principles of nucleic acid structure