Implemented parallelization using OpenMP