start working on c and openmp versions