added pthreads instread of openmp, with pthreads you can create as many as you want