Address #240: Speed up intersection by using a hashtable
Use a hashtable to speed up intersection when the test is suitable and the second list is long enough.
Use a hashtable to speed up intersection when the test is suitable and the second list is long enough.