Cleanups; remove O(n^2) behavior when a sequence is repeated in file2.