Exact Solutions for the Generalized K(m,n) Equation with Variable Coefficients