A hairpin is a number of 0 or more unpaired nucleotides, enclosed by the nucleotides (i,j) which pair.
TODO should we allow loops with more than 30 unpaired nucleotides?
TODO should we allow hairpins with no unpaired nucleotides in the pin? They do occur, but only under special circumstances which we should model differently...
TODO re-allow IMI