Implemented edit distance with optional ingnoring of edge indel costs.