Compiler warning -Weffc++
Add ompenmp implementation