Adds newton_root algorithm