max Subsequence sum algorithm added