matrix_cstyle.cpp -> added test for hasSameDimensions