Writing C++ code in R using the Rcpp package: Overcoming bottleneck in all v all comparison (CC055)