Add classes for Manifolds objects

Classes are:
- Manifold.Base with common parameters and some inherited methods
- Manifold.Dyn with some specific methods to create a custom manifold from others defined manifolds
- Typical manifolds: P2, S1, S2, SO3
- A special manifold to store the TO image (xi variable)
Add contour lines to cost function plot method