Update swap_function.c