Text this: Length Function and Simultaneous Triangularization of Matrix Pairs.