StackArray implementation

A simple stack implemented using an array.