further segment testing for nearestDSmax_RE.c