Read similarity matrix from external file