On the modified Leverrier-Faddeev algorithm