went back to openMP for simplicity, going to use pthreads for other functions