maximum_subarray.c had fixed but did not manage the momery