Added editdistance and helpermethods