Added C++ edit_distance.  Added really compact JS edit_distance.