Queue: Added a ring buffer implementation.