Reimplement nth in terms of itertools.islice