Add number of threads as parameter to ThreadPool