subsequence with the biggest sum in one dimension array