Header files with mathematical template functions and classes