Added reservoir sampling.