Dynamic programming alignment: two languages