new method: getSimilarityMatrix