Change on the functions_capsule interfance and numerical methods

The interface for functions was completely rewriten
Numerical_Methods is not a template any more