Modified diagonal multiplication.Result is not written on the input parameter