C++ template library for linear algebra