simple “hashing” method which converts keys to integers, this may be useful for databases that only store numeric keys