Design errors
I represented A as an array, not a 9x9 matrix.
Lost days of debugging time
switching between the two representations
Not only that . . .
I should have embedded A in a 10x10 matrix
and then used subscripts from 1 to 9
instead of from 0 to 8