Create matrix.cpp

Matrix class and examples