Add subsequence weighting

Add code and readme for subsequence weighting problem