histogram generation using pthreads