Power set and longest common subsequence