Changed GraphIterator back to preorder. Changed postorder iterator to GraphIterator2.
Refactored code to use both preorder and postorder dfs traversal.