TRIDIAGONALIZATION AND ITS APPLICATIONS IN QUANTUM CHAOS AND GRAVITY