Removed memory allocation in SolverDDP + few other efficiency improvements
In this PR I mainly tackle the issue of dynamic memory allocation in SolverDDP #218 (closed). This memory allocation comes from the fact that Eigen needs to create temporal objects for computing an expression. Additionally I did the following tasks:
- Remove an useless if-loop in SolverDDP
- Substitute std::endl by '\n' in CallbackVerbose
- Formatted the code