First working version of the generic minimizer
rename function
rename generated minimzaion class
enable a root finder as alternative to a minimizer