moved meta t sampling to Rcpp