Add ThreadPool class and its unit test