Use similar constructor arguments for AlgorithmBase descendants.
Add documentation FitFunctionBase.
Add Polynomial fit function. Modify testSimpleFitting in TestMath.