Latest version of my Edit distance functions

It is not working correctly yet, but I'm currently working on it.