fixed bug in matrix multiplication
fixed bug in matrix multiplication