Built using RcppTemplate package V2.4 and the Rcpp R/C++ interface library