Identifying Nearest Common Ancestors in a Distributed Environment