Run-time parallelization and scheduling of loops