#14
similar to Kadane, but adding something so it can handle all negative case