improved mandelbrot_set numerical correctness