Converted most Spout Math classes to templates.

Converted most Spout Math classes to templates so that float- and double-based version of each is created automatically.
And updated Spout Engine and API to use float versions of the classes.

Also, added HashFunctions from Trove.