newton for several roots