Found bug in Rcpp2, which was that something wasn't done in the loop. Runtime is approximately double now at ~0.1 second for n=32343.

Ran main test 3 times. First time V[1,1] and V[1,4] were off in KS test, second time only V[1,1] was, third time all tests were same.