Created rudimentary thread pool which takes number of threads as an argument and then delegates threads to tasks.  It probably doesn't work correctly