Is there a reason why we need a hashToIndex instead of a binary search?