Added some fixses on matrix multiplication