Faster version of merge_isov_indices.  (Uses hash table.)