A template of Matrix with C++