Using byte arrays in edit distance to save memory.