sub_dist_mat function

Convert (a subset of) a raw score matrix to a distance matrix