New function for computing similarity matrices and class for storing them. Deprecating SimilarityMatrix.