Ruby implementation of minimum-edit-distance algorithms