Extract alglib into solver class
This MR moves most of the initialization of the alglib Levenberg-Marquardt solver before the loop over the elements, saving a lot of construction costs.
This MR moves most of the initialization of the alglib Levenberg-Marquardt solver before the loop over the elements, saving a lot of construction costs.