Added ringbuffer.c and ringbuffer.h