added OpenMP support for big loops