Initial soln to max value subsequence problem.
Cleaner soln to max value subsequence problem.