Updated reservoir sample algo