normalizeSimilarity function

Calculate similarity indices