dist2list function

Convert distance matrix to pairwised list