Update CPUBenchmark.c

Created a single generalized multithreaded function upto 8 threads. Also user can input number of threads as a parameter.