tested naive matrix multiplication function and added struct constructor and destructor