add function to allow a key to be hashed to a set of nodes