my old implementaions of matrix operations written in C++ (using classes)