Implementation of the Generalized Rayleigh Quotient Iteration algorithm