Add initial code for minimum edit distance method.

This commit adds an initial implementation of a minimum edit distance
method. It's written in Ruby and seems to work correctly.