Rcpp functions for performing "burden" tests.