MMS Replace the different mms_cdf_write functions

Replacing the three different mms_cdf_write mex functions with one single function and updating mms_cdf_write.m to reflect this new mex function.