Integer Matrix in C++