Added RingBuffer class.