Implement std::hash::Hasher trait

So that you can use it with `HashMap`, `HashSet`, etc.