Characteristic Polynomial of a Triangular Matrix