Computes roots of polynomials by solving an eigenvalue problem