A templatized C++ vector and matrix math library