Program to find largest contiguous subarray sum in an array