A trashy ringbuffer/stack hybrid