Optimize hyperbolic functions.

Not used much, but still an improvement. http://jsperf.com/hyperbolics