Least squares, singular values and matrix approximations