Calculate the purity between two vectors.
Purity(x, y)
x
a vector.
y
a vector. x and y are with the same length.
the purity score