diagonal for banded gapped alignment