revise similarity algorithm
Merge branch 'master' of https://github.com/stoosevich/Symeetry