Add function to find common ancestor