A circular buffer implementation. Intended to be a drop-in utility.