nearly finished implemenation

- make thread pool a module
- thread_pool_free not yet implemented