- first minimization functional
- trying to convert lambda function into std::function (quite tricky)
- next step is to perform a real fit