Multi-dimensional grid tabulation for sequence alignment and grid paths
1 standard techniques
dp[i][j] from top, left, or diagonal.