add simple thread pool class and test