extracted constants and added fail-safe for when Gauss-Newton solver requires a lot of iterations
extracted constants and added fail-safe for when Gauss-Newton solver requires a lot of iterations

rolfl/MicroBench,rolfl/MicroBench