Fixes the edit_distance bug where if both the strings are
empty the algorithm returns a random integer.
Edited the already existing test and added a test for the case
when both strings are empty.
Bug link: [https://bugs.llvm.org/show_bug.cgi?id=28780]