Compiles C++ code using Rcpp, Eigen and CppAD to produce first and second order partial derivatives
