added very simple array-based stack implementation