Rewriting slightly the optimized_function_c (renamed to charmed) in order to match the prototype imposed by levmar. Bug found in the initialisationmxCalloc of D_vec where size was set up to ncolsWeight, while not related to ncolsWeight in general. Changed to fixed value 6.