Fixed some problems in the matrix multiplication function.