Using OpenMP for speed up