trees: fix terminology of previous commit
trees: lowest common ancestor
trees: direct approach for lowest common ancestor