matrix: use correct matrix multiplication functions