Fixed bugs in edit_distance
Debugged dl_distance