add maximum sum of subsequence