WOrking pthreads version
Fix benchmarking functions, make it work with pthread
Import various changes from pthread to openmp
Merge with pthread
Add optimizations in Makefile