Update reduce.c