fixed smith-waterman score matrix calculation so that gaps aren't
also assigned a mismatch penalty