Added buffer,ringbuffer plus related unittests