created recursive max subarray in c with int array