Implementation of a thread pool used to calculate and the Mandelbrot set