reservoid  sampling implementation