found a bug in recursive edit distance