Sort dnadiff dist matrix input