LongestEqualSequences