BST traversal without recursion