Efficient C++ linear algebra library for machine learning