Make `farthest` a generator and use `min` instead of `sorted`.