implemented Squared-Chord similarity, distance and their test