added hashRing algorithm