Implement Lowest Common Ancestor in BST and non-recursive version of preorder traversal.