Refactor Threadpool class

Part of #4 issue.
Initialize set in initialization list.