Max subarray problem added some stuff