change the code so that it can run in Windows

Signed-off-by: ezheng <ezheng@cs.unc.edu>
add the mex file to remove useless edges, write edge cost to file using c code

Signed-off-by: ezheng <ezheng@cs.unc.edu>