least-squares problem