Substantial performance improvements from comments by Eytan Bakshy. Using foreach's combine option instead of apply and rbind.
Merge branch 'master' of github.com:deaneckles/multiway_bootstrap