c++ version of mandelbrot