Examples of parallel computation in R