adding program to find max contiguous sum