move the definition of the std::hash method to the header to make optimization easier for the compiler
use an std::hash-like function that uses just as much of the SHA1 digest as necessary