caculate the max sum of subsequence. Done.