adding matrix.h file