added cpp version of Edit Distance