edit distance and munkres for assignment