Algorithms 3.4: Hash table.