Ring Buffer.
http://forum.dlang.org/thread/ltpaqk$2dav$1@digitalmars.com TODO: inout
See Implementation
Ring Buffer.