PivotIndex and New EditDistance added