Removed handmade implementation of thread pool for the sake of OpenMP