added polynomial approximation

alpha, beta, and threshold need to be tuned