It actually looks like there's a RingBuffer in c.t.u, can you use that one?