Foreach parallel adaptor for the snow package