parallelize simple "for" loops