Cyclic Least Common Subsequence