Use smart unique pointers that provide carbage functionality
Currently the library leaks memory in any mathematical operation on matrices https://en.cppreference.com/w/cpp/memory/unique_ptr
Since it is not wanted to delete every single pointer, and since it cannot be excluded, use smart pointers inside a calculation socpe {}. The smart pointers provide some carbage functionality that destroy the object by calling its destructor when leaving a scope - which is the only way I can prevent cache leak.