[algorithms] Add iterations counter to vincenty_inverse for robustness.