Add thread pool
Merge pull request #39 from sue445/feature/thread_pool

Add thread pool