least squares problem