Changes after review.

Mostly minor optimizations to HermitePolynomialApproximation.