Fixed bug in Chord() function (wrong position for modulus wasn't wrapping properly), added naive first version of chord_distance function.