better ring buffer
more ringbuffer stuff
max mem size fixed
ringbuffer class