Ring buffer (circular buffer) data structure