Changed the representation of the stacks in shift reduce parsing.

The top of the stack is now at the end of the list.  This makes
shift-reduce-parsing more intuitive.