As a match between C i and I j occurs when "stepping across a diagonal", the (m-1) first diagonals (from the lower left corner of the array) can not give birth to a valid path.
we do not calculate d [i,j] across these small diagonals.