Tf/optimization

Optimization is now a little bit more rich on algorithms.