implement Chebyshev polynomials of the first and second kind