Q1. (c) pi-curand with pthreads
added pthread implementation with prng random number generator choice