Restructured code in Levenshtein.cpp .