Fix Matrix Multiplication function