Add an universal solution for non-recursive traversal binary tree