Chapter6 gxd

If this is intended to be a [circular buffer](http://en.wikipedia.org/wiki/Circular_buffer) this is a fairly elegant way of doing it. I suspect it wouldn't fit in with stack semantics though (i.e. growth in one direction).