refactored f(x), deleted some useless code
more refactoring, kriging_solution, parameters, rescaling