Implementation of Mandelbrot