define ‘similarity’, please …
and again, what is it for, later ? are you trying to build a map ? track something ?