icd_history function

Historize a list of ICD codes to cover the specified years