renamed mex/source codes to mex/src
adding compile scripts
adding testmex.m