Removed the hard-coded parameters in misfit_i_compiled.m, works