Internal utility to format the matrix used to specify special relationships between pairs of individuals