change calculateAllSimilarities to output all the data