Caculated the similarity for each particle image blocks.

Need to use this similarity matrix to get the particle similarity.