Updated the usage of blas and lapack