(h) similarity matrix