Add stack operations.

Pressing enter now peeks at the top of the stack rather than popping it.
Additionally, the commands 'duplicate', 'swap' and 'clear' are now supported.

Exervise 4-4.