in reply to Finding intersection of many sequences

You can try following algorithm:

  • Comment on Re: Finding intersection of many sequences