Pthreads implementation on hash_codes.c