base matrix for needleman-wunsch algorithm