Fix indexing error in MatrixMultiplication5