Update to similarity matrix