parallelized the forloop in pipelined1.cpp with openmp