Non-recursive binary tree in-order traversal algorithm in Java