renamed SimularityMatrix class to AffinityMatrix, added to it but it has some problems