Functions for fast computation of Levenshtein distance, and edit operations
