initial rcpp attempts + testing