A generalization of the Chebyshev polynomials