experimental Newton root polishing code