Made arguments to FunctionApproximator constructors const. Removed double cloning. Simplified clone implementations for derived classes.
delete all memory in testFunctionApproximatorCloning