Array based queue