Vitter's reservoir sampling algorithm D: randomly selecting unique items | Hacker News Reader