removed unnecessary RcppArmadillo dependency
replaced () by [] for vectors
added optional #define for RcppExport to make it work with Rcpp11