Regularization methods and algorithms for least squares and kronecker product least squares problems