Barrier Synchronization algorithms Using OpenMP