ReservoirSampling fully finished and tested.