lowest common ancestor in binary tree