Use linear probing for hashtable.

This seems to be significantly more efficient since it avoids creating an
additional array of matches for each bucket in the hashtable.