Added parameter max_distance to Levenshtein

This allows the algorithm to return faster when only a distance
comparision is needed