Adding Reservoir Sampling Code