Add first stab at dynamic queue.

Uses a circular buffer.
Formatting nit.