If current and previous factors are same then , Insert the factor with previous factor inserted in matrix M
else : NEW_LINE INDENT M [ tpr ] [ tpc ] = M [ tpr ] [ tpc - 1 ] * factor [ j ] NEW_LINE j += 1 NEW_LINE tpc += 1 NEW_LINE DEDENT