Calculating the Mandelbrot Set