max subarray vector not working yet