Numerical C++ library with multi-dimensional array template