Removed pointer from numerical integration class

Now I am using an auto_ptr and function.Clone to make the numerical
integration safe.