common_ancessor in Algorithms