slight change: LCA algorithms for BST and binary tree