Data structure - non-recursive traversal of binary trees