Edit distance algorithm written in go.