/*
get hash value from key and relation
*/
func (chordNode *ChordNode) GetHashFromKeyAndValue(key, relation string) uint32 {

	//get hash values for key and relation
	keyHash := hashing.GetStartingBits(key, chordNode.KeyHashLength)
	relationHash := hashing.GetStartingBits(relation, chordNode.RelationHashLength)

	return keyHash<<uint(chordNode.RelationHashLength) | relationHash

}
func getSHAID(ipAddress string, port int, mBits int) uint32 {
	return hashing.GetStartingBits(ipAddress+"_"+string(port), mBits)
}