HCF of Polynomials By Factorization