Update of the hash functions for partial perms and transformations