Kadane algorithms added.