fix intialization of control variables in max_subarray.c