bug fix for matrix_multiply w/o LAPACK