Add reservoir sampling methods and tests