Adding gsl optimisation routine
Do a cast to BaseScalarFunction and not BaseJointPdf
Return the correct error when out of the domain
Holy cow
Fix compiler warning for unsigned int comparison
Use BFGS instead of CG and tidy up error messages