Final version of qr
Updated hessian with bug fixed hessian