Add Gauss table for future interpolation support, and a few little optimizations.