Compute distance matrix from list. Internal use.
object
list
FUN
diag
FALSE
Returns an object of class dist.
dist
Witold E. Wolski