A simple ring buffer (AKA circular buffer), just for kicks :)