added longest sum subarray and longest subsequence.