Added longest contiguous subsequence