Adjustment of observations with simultaneous computation of residuals and unknowns