A from scratch implementation of basic matrix manipulation and operations in C++