Create matrix.h

create a class of matrix to support c++ implementation for c++