Polynomial GCF (Greatest Common Factor)