allow setting number of iterations; compare lsqr vs ceres fitting