Added support to pass functions from ROOT to R using TRFunction class,
Added minimization example but require compilation with aclic.