Update ASTree.cpp

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