circular buffer fifo

using CBuffer as fifo