Array-backed integer FIFO queue in C