updated hashing for multi-key partitioning