added qr_blas and changed form_qr to make blas calls