C++ Linear Algebra structures