Change the static dictionary hash table to take into account word frequency when there are hash collisions.