reservoir sampling
moved test