LinuxC++ programming matrix basic operations