convert examples to use RcppParallel rather than TBB