Package based on Rcpp code.