Added Conditional Compilation, works with and without compiler flag -fopenmp
Made variables rank, i, and d private in the parallel for loop
working