Solved problem in matrix.ext.iterate