Algorithms Weighted Reservoir Sampling