fixed the dichotomie algorithm and Newton