distmirr function

Internal function to convert a distance structure to a matrix