Read and Save Matlab .mat file for C++