Check that alignment length is correct.

The algorithm assumes that the positional mismatch penalty matrix
is exactly the same length as the sequences being tested. Added a
check, and set the score to 0.0 if it fails.