Array based stack adapter