OMP version of RGR implemented