Modified vectorized root-finding in depth_ntp_iter.m in optimize_surface_exact (dz_from_phiprime).