long_hash function

drake now has just one hash algorithm per cache.