An implementation of a circular array allowing direct write and read.