optimize matrix multiply and qr_solver
optimize qr_solver