Refine the calculation of the Pi (Leibniz formula)