First working version of dm_to_DissimilarityMatrix