clean up mex compilation script
clean up compiler script & add sparse function