Update ASTree.cpp

fixed 1. deque iterator not dereferencable, 2. crash at for statement
Update ASTree.cpp

trim white-space from blank lines, and a space after the if
Update ASTree.cpp

trim whitespace from blank line
Merge pull request #32 from charlietang98/patch-1

Empty stack fixes in ASTree.cpp