- Changed algorithm to locate nearest common ancestor.