Another implementation of a ringbuffer. It is called rbe because it's possible extend the allocated area.