Well, this code cannot do anything: setting `i=0` and then checking `i<0` is clearly not walking over the matrix.