Solved EditDistance

But don't understand how it works :)