A stack implementation by array