added HL formula to MatrixSimilarity