getZeroMatrix, forEach fix, Math extended