finished similarity matrix
things are a little strange... max similarity isnt when i=j ?