Create ld.erl

edit distance realization by erlang