Least squares method, pseudoinverse. Orthogonal matrices