Update divide.c

change length of array to MAX which is defined as a macro