Matrix.cpp working in UNIX environment