A simple implementation of a stack.