Added function for levenshtein distance - found on Stackoverflow somewhere