Fast Ruby FFI string edit distance algorithms