add similarity matrix