Implemented threading in the fractal generation.

Uses thread pool to create multiple threads for speeding
up the fractal generation.