Ported single_align and fixed all memory errors

This includes one I should backport to the 32-bit version, which
is that mms behaves incorrectly on the character 'N' at
the end of the pattern.
Switched fully to score-based alignment

There are some performance problems (this is roughly half as fast
as what I was doing before)