Basic Diagonal computation for Similarity HeatMap