added chebyshev polynomial function and tested