Rcpp

Added Rcpp functions for t test sampling, generally improved all t test code.