Add isSameTree iteration solution, modified from treeorderTraversal code.