Parallel integration using trapezoidal rule, pthreads implementation