Implemented Chord Algorithm