Update fd_optimize_C.py