A simple Ruby implementation of a Circular Buffer