add OpenMP multithreading for loops