I added the method compare_ancestors to count the number of ML changes between the ancestors.