find maximum non contiguous subsequence sum with weighted independent set