first version of optimized_function_C_levmar. Compiling. Memory error, crash