Added HashFunctions from trove.

Signed-off-by: Wolf480pl <wolf480@interia.pl>
Converted Math classes to templates

Signed-off-by: Wolf480pl <wolf480@interia.pl>
Updated api and engine to use float versions of new template-based
SpoutMath classes.

Signed-off-by: Wolf480pl <wolf480@interia.pl>
Merge pull request #2261 from Wolf480pl/template

Converted most Spout Math classes to templates.