add ringbuffer

short example of ringbuffer as uart-rx buffer