A variation of the edit distance between two words. Uses breadth first search.