Factoring a univariate polynomial by grouping - Problem type 1