computed similarity matrix on 10% of data