Simple stack implemented as array