Similarity and block similarity