Implement a sequenceEqual method for comparing two sequences