Numerical solution of a block adjustment by QR factorization