pThread version of naive GEP
TODO: KAAPIC implementation is still not working correctly