Convert ij index to k index for a dist object
dist_ij_k_(i, j, size)
i
row index
j
column index
size
value of size attribute of the dist object
k index
dist_ij_k_(1, 3, 10)