added a Clear() function to RingBuffer