Circular Fifo Buffer In C