newton2d recursive with while cycle (does not work)