Improved RingBuf implementation.

An alternate implementation of `RingBuf` based on the stdlib `Vec`
implementation.