Create smat2bin.cpp