added function root_core which is called from dz_from_phiprime and depth_ntp_iter. changed callers accordingly. removed for-loop in root-finding core, and fixed bug which prevented exact zero crossings to be found.