replaced sgemm and cgemm kernels because lapack bugs