add BST iterator problem, both O(n) and O(1) space solution