C++ template metaprogram driven tensor math library