max subseq non-adjacent