added parallelization

We now have to compile with the flag -fopenmp