Added CircularBuffer code.