'parallel' library for R with some modifications