Copying over from ViennaRna gem.