binary tree pre-order traversal, non-recursive.