Queue implemented by array.