Fixed upper triangular and correlation distance in DSMatrix