implement weighted reservoir sampling algorithm with exponential jumps