Array based stack queue