pthreads sum