Added tree traversal program without recursion