Linear algebra library in C++