fix lapack wrapper
qr factorization is added