Greatest Eigenvalue Search Subroutine