Adding longest insreasing subsequence and maximum sum increasing subsequence