Nearest Common Ancestors: A Survey and a New Algorithm for a Distributed Environment