Factorise polynomials by common factor (#302)