Implemented the mul matrix operation.