Change operator++ to use iterator references to return value of stack::top