Added a simple stack implementation.